<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class artcl_frnsr_ctr extends CI_Controller {

	public function index()
	{
		
	//	$this->load->model('welcome_mdl'); // load the file welcome_mdl.php
	//	$data['records'] = $this->welcome_mdl->filtera(); // call the method filtera inside the class welcome_mdl
	//	$this->load->view('welcome_vew',$data);  // send the result from the model to the view 
	}
	public function go()
	{
		$this->load->view('artcl_frnsr_vew');  // show the view go
	}
	
	public function pdf()
	{
     $this->load->helper(array('dompdf', 'file'));
     // page info here, db calls, etc.     
     $html = $this->load->view('artcl_frnsr_vew',NULL, true);
     pdf_create($html, 'filename');
     //or
     //$data = pdf_create($html, '', false);
     //write_file('name', $data);
     //if you want to write it to disk and/or send it as an attachment    
	}
	
	
}

/* End of file article_fournisseur_ctr.php */
/* Location: ./application/controllers/article_fournisseur_ctr.php */